package com.skystep.drools.rule.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.skystep.drools.rule.dao.RuleDao;
import com.skystep.drools.rule.entity.Rule;
import com.skystep.drools.rule.service.RuleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Rule)表服务实现类
 *
 * @author yaomianwei
 * @since 2022-07-02 16:19:53
 */
@Service("ruleService")
public class RuleServiceImpl extends ServiceImpl<RuleDao, Rule> implements RuleService {

    @Override
    public List<Rule> getRules() {
        LambdaQueryWrapper<Rule> queryWrapper = new LambdaQueryWrapper<>();
        return baseMapper.selectList(queryWrapper);
    }
}

